package com.sample.im;

import com.swak.annotation.ImApi;
import com.swak.annotation.ImMapping;
import com.swak.annotation.ImOps;
import com.swak.security.Subject;
import com.swak.vertx.protocol.im.ImContext;

/**
 * IM 服务
 * 
 * @author 618lf
 */
@ImApi(value = "SampleIm", path = "/im/game/:id")
public class SampleIm {

	@ImMapping(method = ImOps.Connect)
	public void imConnect(ImContext context, String id, Subject subject) {

	}

	@ImMapping(method = ImOps.Close)
	public void imClose(ImContext context, String id, Subject subject) {

	}
}